<?php
class a{
    public function test(){
        echo 1;
    }
}
class test{
     function __construct(a $a,$b)
     {

     }
}

$res=new ReflectionClass('test');
$con=$res->getConstructor();
 $arr=$con->getParameters();
echo $arr[0]->getClass();